<!DOCTYPE html>

<html>
<head>
<style>
  .fixed {
    position: fixed;
    width: 10px;
    height: 10px;
    visibility: hidden;
    background-color: red;
  }
</style>

<script>
  if (window.internals) {
    internals.settings.setPreferCompositingToLCDTextEnabled(true);
    internals.settings.setThreadedScrollingEnabled(true);
  }

  if (window.testRunner) {
    testRunner.dumpAsText();

    window.addEventListener("load", function() {
      document.getElementById("mainThreadScrollingReasons").innerText = internals.mainThreadScrollingReasons(document);
    }, false);
  }
</script>
</head>

<body>
<div style="height: 1000px">
  Main thread scrolling reasons should be blank:
  <pre id="mainThreadScrollingReasons"></pre>
</div>

<div class="fixed"></div>

</body>
</html>
